<div id="tabContent">
    <div id="saveButton" style="display:block">
        <ul class="saveButtons">
            <li class="first"><a href="{url route='editStructure' tabName='inbox' docId=$structure->getUniqueId() docLang=$structure->getLang()}" class="loadInTab toolTip linkButton active" title="">{icon name="menu_up.png"} {t}Back to inbox{/t}</a></li>
            <li><a href="?module=form&action=AjaxMarkAsRead&docId={$record->getUniqueId()}&docLang={$record->getLang()}" class="ajax toolTip linkButton active" title="">{if $record->getPublicationstatus() == 'NEW'}{icon name="active_right2.png"} {t}Mark as read{/t}{else}{icon name="status/PUBLISHED_big.png"} {t}Mark as unread{/t}{/if}</a></li>
            <li><a href="{$URL_RELATIVE}/bo/#{url route='deleteGeneric' moduleName='form' docId=$record->getUniqueId() docLang=$record->getLang()}&refresh=1" class="nyroModal toolTip linkButton active" title="">{icon name="delete2.png"} {t}Delete{/t}</a></li>
        </ul>
    </div>
</div>
<table class="listTable">
    <thead>
        <tr>
            <th>{t}Field{/t}</th><th>{t}Value{/t}</th>
        </tr>
    </thead>
    <tbody class="documentListItems">
        <tr><td>{t}Posted on{/t}</td><td>{date date=$record->getCreationDate()} ({$record->getCreationDate()|since})</td></tr>
        {foreach from=$structure->getListFields() item=field}
        <tr>
            <td>{$field.label}</td>
            <td>{$record->getFormValue($field.name)|nl2br}</td>
        </tr>
        {/foreach}
    </tbody>
</table>